'use strict';

function collect_max_number(collection) {
  //在这里写入代码
  let max = collection[0];
for (let i = 0; i < collection.length - 1; i++) {
    max = max < collection[i+1] ? collection[i+1] : max
}
return max
}

module.exports = collect_max_number;
